
CC = g++
CFLAGS = -Wall -g 
PROG = teapot
PROG137 = teapot137
SRCS =  shaderhelp.cpp shaderhelp.h loaders.cpp vec3f.h vec3f.cpp main.cpp
SRCS137 =  shaderhelp.cpp shaderhelp.h loaders_137.cpp vec3f.h vec3f.cpp main_137.cpp

ifeq ($(shell uname),Darwin)
	LIBS =  -D__MAC__ -framework OpenGL -framework GLUT -framework Carbon -lGLEW
else
	LIBS = -lglut -lGL -lGLU -lGLEW
endif


all: $(PROG)

$(PROG): $(SRCS)
	$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS)

$(PROG137): $(SRCS137)
	$(CC) $(CFLAGS) -o $(PROG137) $(SRCS137) $(LIBS)
#glm.o: glm.c glm.h
#	g++ -Wall -g -o glm.o glm.c glm.h $(LIBS)

#shaderhelp.o: shaderhelp.cpp shaderhelp.h
#	g++ -Wall -g -o shaderhelp.o shaderhelp.cpp shaderhelp.h $(LIBS)

#main.o: main.cpp	
#	g++ -Wall -g main.cpp $(LIBS)	
clean:
	rm -f $(PROG)
		rm -f $(PROG137)



